CSS Text by Eric A. Meyer

CSS Text by Eric A. Meyer

Author:Eric A. Meyer
Language: eng
Format: epub, pdf
Tags: COMPUTERS / Web / Page Design
ISBN: 9781449373733
Publisher: O’Reilly Media
Published: 2013-08-21T16:00:00+00:00


p {letter-spacing: 0.25em; font-size: 20px;} small {font-size: 50%;}

<p>This spacious paragraph features <small>tiny text that is just as spacious</small>, even though the author probably wanted the spacing to be in proportion to the size of the text.</p>

Figure 1-27. Inherited letter spacing

The only way to achieve letter spacing that’s in proportion to the size of the text is to set it explicitly, as follows:

p {letter-spacing: 0.25em;} small {font-size: 50%; letter-spacing: 0.25em;}

Text Transformation



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.